package com.zfzs.post.model.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @description: 修改身份证号码
 * @author: ck
 * @create: 2019-09-06 17:00
 **/
@Data
public class UpdateIDCardNoDTO {
    //身份证号码
    @NotBlank(message = "请输入身份证号")
    @Pattern(regexp = "^[1-9]\\d{7}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])\\d{3}$|^[1-9]\\d{5}[1-9]\\d{3}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])\\d{3}([0-9]|X)$"
            ,message = "请输入正确的身份证号"
    )
    private String cardNo;
    //验证码
    @NotBlank(message = "请输入验证码")
    private String code;
    //验证码uuid
    private String uuid;
}
